package com.tbm.console.proj.modal;


import com.tbm.console.proj.entity.SystemMenu;
import lombok.Data;

@Data
public class SystemMenuParam {

    private Integer id;
    private String menuName;
    private String menuURL;
    private String parentId;
    private String menuOrder;
    private String menuIcon;
    private String menuType;
    private String menuRights;

    private String isUsed;

    public SystemMenuParam(){

    }

    public SystemMenuParam(SystemMenu systemMenu){
        this.id = systemMenu.getId();
        this.menuName = systemMenu.getMenuName();
        this.menuURL = systemMenu.getMenuURL();
        this.parentId = systemMenu.getParentId();
        this.menuOrder = systemMenu.getMenuOrder();
        this.menuIcon = systemMenu.getMenuIcon();
        this.menuType = systemMenu.getMenuType();
        this.menuRights = systemMenu.getMenuRights();
//        this.isUsed = "unused";
        this.isUsed = "used";
    }
}
